﻿<%@ Control Language="vb" AutoEventWireup="false" Explicit="true" CodeFile="MLPHD_News.ascx.vb"
    Inherits="NVPortal.Modules.NVNews.MLPHD_News" %>
<table cellpadding="0" cellspacing="0" width="100%" style="text-align: left;">
    <tr>
        <td style="vertical-align: top;">
            <asp:DataList ID="drgOtherNews" Width="100%" GridLines="None" runat="server" DataKeyField="Newid">
                <ItemTemplate>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding: 7px 0px; border-bottom: dotted 1px #ededed;">
                        <tr>
                            <td style="vertical-align: top;">
                                <asp:Image Style="padding: 2px; border: 1px solid #e4e4e4; margin-right:7px;" BorderWidth="0"
                                    ImageAlign="left" ID="imgNews" runat="server" Width="140" ImageUrl='<%# iif(DataBinder.Eval(Container, "DataItem.imagepath").tostring().Contains("http://"),DataBinder.Eval(Container, "DataItem.imagepath"), DataBinder.Eval(Container, "DataItem.imagepath")) %>' />
                                <asp:HyperLink CssClass="MLPHD_News_Title" ID="hplOtherNews" runat="server" ToolTip='<%# Server.HtmlDecode(DataBinder.Eval(Container.DataItem,"summary"))%>'
                                    NavigateUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,"newid"),DataBinder.Eval(Container.DataItem,"Title")) %>'
                                    Text='<%# DataBinder.Eval(Container.DataItem,"title")%>'></asp:HyperLink><br />
                                    <asp:Label ID="lbSummary" CssClass="MLPHD_News_Sum" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Summary")%>'></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </td>
    </tr>
    <tr><td class="MLPHD_News_Tinkhac">Các tin khác:</td></tr>
    <tr>
        <td class="MLPHD_News_Tinkhac2">
            <asp:DataList ID="drgOtherNewsRight" Width="100%" GridLines="None" runat="server"
                DataKeyField="newid">
                <ItemTemplate>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <img src="/images/node.gif" style="" />
                                <asp:HyperLink CssClass="MLPHD_News_Title2" ID="hplOtherNews" runat="server" ToolTip='<%# Server.HtmlDecode(DataBinder.Eval(Container.DataItem,"summary"))%>'
                                    NavigateUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,"newid"),DataBinder.Eval(Container.DataItem,"Title")) %>'
                                    Text='<%# DataBinder.Eval(Container.DataItem,"title")%>'></asp:HyperLink>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </td>
    </tr>
</table>
